<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
      <ul>
          <li v-for='item in list'>每一项的值：{{item}}</li>
      </ul>
      <ol>
          <li v-for='(item,index) in list'>每一项的值：{{item}} --- 每一项的索引：{{index}}</li>
      </ol>
      <ul>
          <li v-for='(val,key,index) of items'>每一项的key：{{key}} --- 每一项的值：{{val}} --- 每一项的索引：{{index}}</li>
      </ul>
      <ul>
          <li v-for='(item,index) of list' :key='item'>{{item}}---{{index}}</li>
      </ul>
  </div>
  <script src="./vue.js"></script>
  <script>
    var vm = new Vue({
      el:'#app',
      data:{
          list: ['草莓','西瓜','车厘子'],
          items: {
              name:'zs',
              age:'19',
              hobby:'rap'
          }
      },
      methods:{
      }
     });
  </script>
</body>
</html>
